/*
* Copyrigth 2008 Company All rigths reserved
* File Name: TS_User_Teacher_Entity.cs
* Created By:    Wenbin.Xu
* Created Date:   2013/7/8 16:34:50
* Description:    TS_User_Teacher的实体类
* Change History: 
* 
* */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WisDragon.Framework.EntityAttribute;

namespace TrainingsApp.Model {
    /// <summary>
    /// 表示TS_User_Teacher的类型
    /// </summary>
    public class TS_User_Teacher_Entity {

        public string GenderName {
            get {
                if (this.Gender.HasValue) {
                    return this.Gender.Value ? "男" : "女";
                }
                return "女";
            }
        }

        /// <summary>
        /// 用户名
        /// </summary>
        [DataMapping("UserName", System.Data.DbType.AnsiString)]
        public System.String UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [DataMapping("Password", System.Data.DbType.AnsiString)]
        public System.String Password { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [DataMapping("Name", System.Data.DbType.AnsiString)]
        public System.String Name { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [DataMapping("Gender", System.Data.DbType.Boolean)]
        public System.Boolean? Gender { get; set; }

        /// <summary>
        /// 出生日期
        /// </summary>
        [DataMapping("BirthDay", System.Data.DbType.DateTime)]
        public System.DateTime? BirthDay { get; set; }

        /// <summary>
        /// 身份证
        /// </summary>
        [DataMapping("IdentityCard", System.Data.DbType.AnsiString)]
        public System.String IdentityCard { get; set; }

        /// <summary>
        /// 手机
        /// </summary>
        [DataMapping("Mobile", System.Data.DbType.AnsiString)]
        public System.String Mobile { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [DataMapping("Email", System.Data.DbType.AnsiString)]
        public System.String Email { get; set; }

        /// <summary>
        /// 个人照片
        /// </summary>
        [DataMapping("PhotoImage", System.Data.DbType.AnsiString)]
        public System.String PhotoImage { get; set; }

        /// <summary>
        /// 学生,teacher,家长
        /// </summary>
        [DataMapping("UserType", System.Data.DbType.Int32)]
        public System.Int32? UserType { get; set; }


        /// <summary>
        /// 用户表主键
        /// </summary>
        [DataMapping("UserId", System.Data.DbType.Int64)]
        public System.Int64? UserId { get; set; }

        /// <summary>
        /// 学校主键
        /// </summary>
        [DataMapping("SchoolId", System.Data.DbType.Int64)]
        public System.Int64? SchoolId { get; set; }

        /// <summary>
        /// 班级主键
        /// </summary>
        [DataMapping("ClassesId", System.Data.DbType.Int64)]
        public System.Int64? ClassesId { get; set; }

        /// <summary>
        /// 状态,是领导,班主任等
        /// </summary>
        [DataMapping("ManagerStatus", System.Data.DbType.Byte)]
        public System.Byte? ManagerStatus { get; set; }

        /// <summary>
        /// 职位
        /// </summary>
        [DataMapping("PositionId", System.Data.DbType.Int32)]
        public System.Int32? PositionId { get; set; }

        /// <summary>
        /// 学科
        /// </summary>
        [DataMapping("CourseId", System.Data.DbType.Int32)]
        public System.Int32? CourseId { get; set; }

        /// <summary>
        /// 教材ID
        /// </summary>
        [DataMapping("MaterialsId", System.Data.DbType.Int32)]
        public System.Int32? MaterialsId { get; set; }

        /// <summary>
        /// 职称
        /// </summary>
        [DataMapping("TitleId", System.Data.DbType.Int32)]
        public System.Int32? TitleId { get; set; }

        [DataMapping("SchoolName", System.Data.DbType.String)]
        public string SchoolName { get; set; }

        [DataMapping("CourseName", System.Data.DbType.String)]
        public string CourseName { get; set; }

        [DataMapping("ClassName", System.Data.DbType.String)]
        public string ClassName { get; set; }

        [DataMapping("Materials", System.Data.DbType.String)]
        public string Materialsname { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("CreateDate", System.Data.DbType.DateTime)]
        public System.DateTime? CreateDate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("UserSource", System.Data.DbType.Int16)]
        public System.Int16? UserSource { get; set; }

    }
}